package com.fitness.fitness.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.fitness.modal.course.dto.CourseCommentDto;
import com.fitness.fitness.modal.course.entity.CourseComment;
import com.fitness.fitness.modal.course.vo.CourseCommentVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface CourseCommentConvertor {
    Page<CourseCommentVO> entity2Vo(Page<CourseComment> pageVo);
    CourseCommentVO entity2Vo(CourseComment result);

    CourseComment dto2Entity(CourseCommentDto commentDto);
}
